home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / winsock / ircii2-6.zip / SRC\IRCII-2.6\INCLUDE\LASTLOG.H < prev    next >
C/C++ Source or Header  |  1994-12-28  |  1KB  |  60 lines

  1. /*
  2.  * lastlog.h: header for lastlog.c 
  3.  *
  4.  * Written By Michael Sandrof
  5.  *
  6.  * Copyright(c) 1990 
  7.  *
  8.  * See the COPYRIGHT file, or do a HELP IRCII COPYRIGHT 
  9.  *
  10.  * @(#)$Id: lastlog.h,v 1.5 1994/07/02 02:38:10 mrg Stab $
  11.  */
  12.  
  13. #ifndef __lastlog_h_
  14. #define __lastlog_h_
  15.  
  16. typedef struct    lastlog_stru
  17. {
  18.     int    level;
  19.     char    *msg;
  20.     struct    lastlog_stru    *next;
  21.     struct    lastlog_stru    *prev;
  22. }    Lastlog;
  23.  
  24. #define LOG_NONE    0x000000
  25. #define LOG_CURRENT    0x000000
  26. #define LOG_CRAP    0x000001
  27. #define LOG_PUBLIC    0x000002
  28. #define LOG_MSG        0x000004
  29. #define LOG_NOTICE    0x000008
  30. #define LOG_WALL    0x000010
  31. #define LOG_WALLOP    0x000020
  32. #define LOG_NOTES    0x000040
  33. #define LOG_OPNOTE    0x000080
  34. #define    LOG_SNOTE    0x000100
  35. #define    LOG_ACTION    0x000200
  36. #define    LOG_DCC        0x000400
  37. #define LOG_CTCP    0x000800
  38. #define    LOG_USER1    0x001000
  39. #define LOG_USER2    0x002000
  40. #define LOG_USER3    0x004000
  41. #define LOG_USER4    0x008000
  42.  
  43. #define LOG_ALL (LOG_CRAP | LOG_PUBLIC | LOG_MSG | LOG_NOTICE | LOG_WALL | \
  44.         LOG_WALLOP | LOG_NOTES | LOG_OPNOTE | LOG_SNOTE | LOG_ACTION | \
  45.         LOG_CTCP | LOG_DCC )
  46.  
  47. extern    void    set_lastlog_level();
  48. extern    int    set_lastlog_msg_level();
  49. extern    void    set_lastlog_size();
  50. extern    void    set_notify_level();
  51. extern    void    lastlog();
  52. extern    void    add_to_lastlog();
  53. extern    char    *bits_to_lastlog_level();
  54. extern    int    real_lastlog_level();
  55. extern    int    real_notify_level();
  56. extern    int    parse_lastlog_level();
  57. extern    int    islogged();
  58.  
  59. #endif /* __lastlog_h_ */
  60.